<template>
  <!-- 登录同意提示框 -->
  <!-- 遮罩层 -->
  <transition name="fade">
    <div class="login_agree_mask" v-show="isShowLoginAgreeModal">
      <p>请先勾选同意《服务条款》《隐私政策》《儿童隐私政策》</p>
    </div>
  </transition>
</template>

<script>
import { mapState } from "vuex";
export default {
  data() {
    return {};
  },
  computed: {
    ...mapState({
      isShowLoginAgreeModal: (state) =>
        state.showLoginAgreeModal.isShowLoginAgreeModal,
    }),
  },
};
</script>
<style lang="less" scoped>
.login_agree_mask {
  width: 300px;
  height: 100px;
  line-height: 35px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  z-index: 2000;
  text-align: center;
  color: #fff;
  padding: 20px 10px;
}
// 进场时候过渡的开始状态===离开时候过渡的结束状态
.fade-enter,
.fade-leave-to {
  opacity: 0;
}
// 指定过渡的属性和时间
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.8s;
}
// 进场时候过渡的结束状态===离开时候过渡的开始状态
.fade-enter-to,
.fade-leave {
  opacity: 1;
}
</style>
